package com.source.multithread.reentrantllock;

import java.util.Collections;

/**
 * @Author wengqy
 * @Date 2020/12/30
 */
public class DegugDemo {

    public static void main(String[] args) {
        int submitl = submitl(5000, 100);
        sort(submitl);
        System.out.println(submitl);

        int sum = 0;
        for (int i = 0; i <=20 ; i++) {
            System.out.print(i);
            sum = sum + i;
        }
    }


    public static int sum(int end){
        int sum =0;
        sort(end);
        System.out.println("hhhhh");

        for (int i = 0; i <=end ; i++) {
            System.out.print(i);
            sum = sum + i;
        }
        System.out.println(sum);
        return sum;
    }

    public static int submitl(int a, int end){
        int res= sum(end) -a;
        return res;
    }

    public static  void sort(int sun){
       sun = sun +sun;
    }


}
